package com.bw.lib_net.interceptor

import com.bw.lib_storage.mmkv.AppMMKV
import com.bw.lib_storage.mmkv.AuthMMKV
import com.bw.lib_storage.mmkv.UserMMKV
import okhttp3.Interceptor
import okhttp3.Response

class HttpHeaderInterceptor:Interceptor {

    override fun intercept(chain: Interceptor.Chain): Response {
        val request=chain.request()
        val newBuild=request.newBuilder()
        newBuild.addHeader("accessId","1b370cdcfdf04fe2b850dc69e3f7a021")
        newBuild.addHeader("token",AuthMMKV.token)
        return  chain.proceed(newBuild.build())
    }
}